const Mock = require('mockjs')
const count = 18
const searchdata = []

for (let i = 0; i < count; i++) {
  searchdata.push(Mock.mock({
    date: '@date("yyyy-MM-dd")',
    type: '@cname',
    address: '@url',
    'price|100-300': 100
  }))
}
module.exports = {
  'POST /confQuery'(req, res) {
    const response = {
      code: 20000,
      data: searchdata
    }
    res.json(response)
  }
}
